#!/bin/sh

#alias mvn='/home/equesada/apache-maven-2.2.1-bin/apache-maven-2.2.1/bin/mvn'
#alias java='/home/equesada/java-6-sun-1.6.0.06/jre/bin/java'
#export JAVA_HOME=/home/equesada/java-6-sun-1.6.0.06/jre
#export PATH=$PATH:/home/equesada/java-6-sun-1.6.0.06/jre/bin

echo "Enter your maven command :"
read cmd
 
for onedir in `ls -l | grep '^d' | sed "s/.* //"`
do
    echo "########################## $onedir #######################";
    mvn $cmd -f $onedir/pom.xml | grep '^\['
done
